/* 所有使用绝对定位水平居中的选择器 */
.tabbar > div.selected::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 所有使用绝对定位垂直居中的选择器 */

/* 所有使用绝对定位居中的选择器 */
.search-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page {
    box-sizing: border-box;
    width: 100vw;
    min-height: 100vh;
    position: relative;
    background-color: var(--page-bg-color);
    overflow-y: auto;
    padding: 10vh 5vw;
}

.content {
    width: 100%;
    height: 100%;
    padding-bottom: 10rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.sys-time {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.time {
    color: var(--time-color);
    font-size: 6rem;
    padding-bottom: 2rem;
}

.date {
    color: var(--date-color);
    font-size: 2rem;
    padding-bottom: 2rem;
}

.search-line {
    width: 100%;
    height: 10rem;
    position: relative;
}

.search-box {
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    border-radius: 1rem;
    overflow: hidden;
}

.input-dom {
    height: 100%;
    background-color: #fff;
    flex: 1;
}

.input-dom input {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 1rem;
    outline: none;
    border: 0;
    font-size: 2.5rem;
}

.search-btn {
    --box-size: 8rem;
    width: var(--box-size);
    height: var(--box-size);
    background-color: var(--search-btn-color);
    position: relative;
}

.search-btn:active {
    background-color: var(--search-btn-selected-color);
}

.search-btn::before {
    --icon-size: 26%;
    content: "";
    display: block;
    position: absolute;
    width: var(--icon-size);
    height: var(--icon-size);
    top: 25%;
    left: 25%;
    border-radius: 50%;
    border: 0.6rem solid var(--search-btn-icon-color);
}

.search-btn::after {
    content: "";
    display: block;
    position: absolute;
    width: 0.6rem;
    height: 20%;
    top: 57%;
    left: 57%;
    background-color: var(--search-btn-icon-color);
    transform: rotate(-40deg);
}

.content main {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.tabbar {
    width: 100%;
    height: 8rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.tabbar > div {
    width: 10rem;
    font-size: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.tabbar > div.selected {
    position: relative;
}

.tabbar > div.selected::after {
    content: "";
    display: block;
    width: 50%;
    height: 0.5rem;
    background-color: var(--tabbar-selected-color);
    position: absolute;
    bottom: 0;
}

.all-site {
    --site-photo-width: calc((90vw - 44rem) / 12);
    width: 100%;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.site-line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.site-group-name {
    /* --h: 5rem; */
    width: 20rem;
    min-width: 20rem;
    /* height: var(--h); */
    text-align: center;
    /* line-height: var(--h); */
    white-space: nowrap;
}

.site-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.site-item {
    width: var(--site-photo-width);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 2rem;
}

.site-item:hover {
    border-radius: 1rem;
    background-color: var(--site-item-selected-color);
}

.site-item > a {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    align-items: center;
    gap: 1rem;
}

.site-icon {
    --box-size: var(--site-photo-width);
    width: var(--box-size);
    height: var(--box-size);
    min-width: var(--box-size);
    min-height: var(--box-size);
    background-image: var(--icon-url);
    background-size: contain;
    transform: scale(0.85);
}

.site-name {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .site-line {
        display: block;
    }
    .site-list {
        flex-wrap: wrap;
    }
    .site-item {
        width: 200px;
    }
    .site-item > a {
        flex-direction: row;
        padding-left: 5rem;
    }
    .site-icon {
        transform: scale(1);
    }
}

@media (max-width: 800px) {
    .time {
        font-size: 12rem;
    }
    .date {
        font-size: 3rem;
    }
    .site-icon {
        transform: scale(1);
    }
}

@media (max-width: 500px) {
    .content {
        padding-top: 50rem;
    }
    .site-icon {
        transform: scale(1);
    }
}
